// @ts-nocheck
import React from 'react';
import { ApplyPluginsType, dynamic } from '/Users/tanghq/code/web/jfyl/jfyl-demo/node_modules/@umijs/runtime';
import * as umiExports from './umiExports';
import { plugin } from './plugin';
import LoadingComponent from '@/components/PageLoading/index';

export function getRoutes() {
  const routes = [
  {
    "path": "/",
    "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__BlankLayout' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/layouts/BlankLayout'), loading: LoadingComponent}),
    "routes": [
      {
        "path": "/user",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__UserLayout' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/layouts/UserLayout'), loading: LoadingComponent}),
        "routes": [
          {
            "name": "login",
            "path": "/user/login",
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__User__login' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/User/login'), loading: LoadingComponent}),
            "exact": true
          }
        ]
      },
      {
        "path": "/",
        "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__SecurityLayout' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/layouts/SecurityLayout'), loading: LoadingComponent}),
        "routes": [
          {
            "path": "/",
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'layouts__BasicLayout' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/layouts/BasicLayout'), loading: LoadingComponent}),
            "authority": [
              "admin",
              "jxs-1",
              "store",
              "checker",
              "financial",
              "observer",
              "admin2",
              "wbsc",
              "admin3",
              "analysis",
              "ns"
            ],
            "routes": [
              {
                "path": "/",
                "authority": [
                  "admin",
                  "store",
                  "checker",
                  "financial",
                  "observer",
                  "admin2",
                  "wbsc",
                  "admin3",
                  "analysis",
                  "ns"
                ],
                "redirect": "/welcome",
                "exact": true
              },
              {
                "path": "/welcome",
                "name": "welcome",
                "icon": "smile",
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Welcome' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Welcome'), loading: LoadingComponent}),
                "authority": [
                  "admin",
                  "store",
                  "checker",
                  "financial",
                  "observer",
                  "admin2",
                  "wbsc",
                  "admin3",
                  "analysis",
                  "ns"
                ],
                "exact": true
              },
              {
                "path": "/master",
                "name": "master",
                "icon": "AppstoreOutlined",
                "authority": [
                  "admin",
                  "admin3"
                ],
                "routes": [
                  {
                    "path": "/product",
                    "name": "product",
                    "routes": [
                      {
                        "path": "/master/product/sku",
                        "name": "sku",
                        "authority": [
                          "admin"
                        ],
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Product' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Product'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/master/product/package",
                        "name": "package",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Product__pack' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Product/pack'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/master/product/price",
                        "name": "price",
                        "authority": [
                          "admin"
                        ],
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Product__price' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Product/price'), loading: LoadingComponent}),
                        "exact": true
                      }
                    ]
                  },
                  {
                    "path": "/master/dealer",
                    "name": "dealer",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Dealer' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Dealer'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/master/hospital",
                    "name": "hospital",
                    "icon": "BankOutlined",
                    "authority": [
                      "admin"
                    ],
                    "routes": [
                      {
                        "path": "/master/hospital/hospital",
                        "name": "hospital",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Hospital' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Hospital'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/master/hospital/contact",
                        "name": "contact",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Hospital__contact' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Hospital/contact'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/master/hospital/device",
                        "name": "device",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Hospital__zjl' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Hospital/zjl'), loading: LoadingComponent}),
                        "exact": true
                      }
                    ]
                  },
                  {
                    "path": "/master/area",
                    "name": "area",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Area' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Area'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/master/expert",
                    "name": "expert",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__MasterData__Expert' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/MasterData/Expert'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/kol",
                "name": "kol",
                "icon": "CoffeeOutlined",
                "routes": [
                  {
                    "path": "/kol/my",
                    "name": "my",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__KOL__my' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/KOL/my'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/kol/plan",
                    "name": "plan",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__KOL__plan' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/KOL/plan'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/kol/kol",
                    "name": "kol",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__KOL__kol' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/KOL/kol'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/markets",
                "name": "markets",
                "icon": "PropertySafetyOutlined",
                "authority": [
                  "admin"
                ],
                "routes": [
                  {
                    "path": "/markets/plan",
                    "name": "plan",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Markets__plan' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Markets/plan'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/markets/info",
                    "name": "info",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Markets__info' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Markets/info'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/markets/summary",
                    "name": "summary",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Markets__summary' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Markets/summary'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/sale",
                "name": "sale",
                "icon": "PayCircleOutlined",
                "routes": [
                  {
                    "path": "/sale/line",
                    "name": "line",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__line' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/line'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/sale/chance",
                    "name": "chance",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__chance' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/chance'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/sale/ticket",
                    "name": "ticket",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__ticket' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/ticket'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/sale/bidding",
                    "name": "bidding",
                    "routes": [
                      {
                        "path": "/sale/bidding/plan",
                        "name": "plan",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__bidding' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/bidding'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/sale/bidding/msg",
                        "name": "msg",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__bidding_1' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/bidding_1'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/sale/bidding/detail",
                        "name": "detail",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__bidding_2' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/bidding_2'), loading: LoadingComponent}),
                        "exact": true
                      }
                    ]
                  },
                  {
                    "path": "/sale/competition",
                    "name": "competition",
                    "routes": [
                      {
                        "path": "/sale/competition/baseinfo",
                        "name": "baseinfo",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__competition' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/competition'), loading: LoadingComponent}),
                        "exact": true
                      },
                      {
                        "path": "/sale/competition/competition",
                        "name": "competition",
                        "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__equipment_2' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/equipment_2'), loading: LoadingComponent}),
                        "exact": true
                      }
                    ]
                  },
                  {
                    "path": "/sale/contract",
                    "name": "contract",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__contract' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/contract'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/sale/order",
                    "name": "order",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__order' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/order'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/sale/recv_ticket",
                    "name": "recv_ticket",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Order__recv_ticket' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Order/recv_ticket'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/sale/equipment",
                    "name": "equipment",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Sale__equipment' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Sale/equipment'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/approval",
                "name": "approval",
                "icon": "form",
                "authority": [
                  "admin",
                  "checker",
                  "financial"
                ],
                "hideInBreadcrumb": true,
                "routes": [
                  {
                    "path": "/approval/hospital",
                    "name": "ticket",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Approval__ticket' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Approval/ticket'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/approval/try",
                    "name": "try",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Approval__ticket' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Approval/ticket'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/approval/ticket",
                    "name": "ticket",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Approval__ticket' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Approval/ticket'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/approval/contact",
                    "name": "contact",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Approval__ticket' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Approval/ticket'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/statistics",
                "name": "statistics",
                "icon": "BarChartOutlined",
                "hideInBreadcrumb": true,
                "routes": [
                  {
                    "path": "/statistics/chance",
                    "name": "chance",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Statistics__chance' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Statistics/chance'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/statistics/activity",
                    "name": "activity",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Statistics__activity' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Statistics/activity'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/statistics/return",
                    "name": "return",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Statistics__return' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Statistics/return'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/statistics/sale",
                    "name": "sale",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Statistics__sale' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Statistics/sale'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/statistics/visit",
                    "name": "visit",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Statistics__visit' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Statistics/visit'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/system",
                "name": "system",
                "icon": "Setting",
                "authority": [
                  "admin"
                ],
                "hideInBreadcrumb": true,
                "routes": [
                  {
                    "path": "/system/base",
                    "name": "base",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__System__Base' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/System/Base'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/system/user",
                    "name": "user",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__System__User' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/System/User'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/system/loger",
                    "name": "loger",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__System__Loger' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/System/Loger'), loading: LoadingComponent}),
                    "exact": true
                  },
                  {
                    "path": "/system/menu",
                    "name": "menu",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__System__Menu' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/System/Menu'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "path": "/account",
                "hideInBreadcrumb": true,
                "routes": [
                  {
                    "path": "/account/pass",
                    "name": "pass",
                    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__Pass' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/Pass'), loading: LoadingComponent}),
                    "exact": true
                  }
                ]
              },
              {
                "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__404' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/404'), loading: LoadingComponent}),
                "exact": true
              }
            ]
          },
          {
            "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__404' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/404'), loading: LoadingComponent}),
            "exact": true
          }
        ]
      }
    ]
  },
  {
    "component": dynamic({ loader: () => import(/* webpackChunkName: 'p__404' */'/Users/tanghq/code/web/jfyl/jfyl-demo/src/pages/404'), loading: LoadingComponent}),
    "exact": true
  }
];

  // allow user to extend routes
  plugin.applyPlugins({
    key: 'patchRoutes',
    type: ApplyPluginsType.event,
    args: { routes },
  });

  return routes;
}
